package com.fun.feifun.modules.business.model.param;

import com.fun.feifun.modules.business.model.dto.BusinessUserRouteDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BusinessSupplierGoodsParam implements Serializable  {
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商品列表")
    private List<GoodsFees> goodsList;

    @Data
    public static class GoodsFees{
        @ApiModelProperty(value = "主键")
        private Long id;

        @ApiModelProperty(value = "商品id")
        private Long goodsId;

        @ApiModelProperty(value = "手续金额")
        private BigDecimal feesAmount;

        @ApiModelProperty(value = "是否拥有授权")
        private boolean hasAuthor;

        @ApiModelProperty(value = "供货商平台商品编号")
        private String productCode;

    }
}
